package com.yuanss.backenddemo.auth.token;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author yuanss
 * @version 1.0
 * @description
 * @date 2024/6/12 20:23:15
 */
public class JwtToken implements AuthenticationToken {

    private String token;

    /**
     * 构造函数
     */
    public JwtToken(String token) {
        this.token = token;
    }


    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
